package com.lagou.Dao;

import com.lagou.pojo.Account;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @Authther: mrwu
 * @date:2021/3/13-03
 * @Description:com.lagou.Dao
 */
public interface AccountDao {
    @Select("select * from account where cardNo=#{cardNo}")
    public Account selectObjByCardNo(String cardNo);
    //传入的account 必须要设置cardNo 属性
    @Update("update account set name=#{name},money=#{money} where cardNo=#{cardNo}")
    public int updateAccountBycardNo(Account account);
}
